.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display:flex;
    justify-content: space-between;
    padding: 16px;
    z-index: 999;
}